
export default [
  {
    path: '/login',
    name: '登录',
    component: '@/pages/user/Login',
  },
  { path: '/', redirect: '/dashboard' },
  {
    path: '/',
    component: '@/layouts/index',
    routes: [
      {
        path: '/dashboard',
        name: '我的订单',
        icon: 'icon-shoucang1',
        component: '@/pages/dashboard',
      },
      {
        path: '/main-father',
        name: '主路由',
        children: [
          {
            path: '/main-father/dynamic',
            name: 'dynamic',
            component: '@/pages/dynamic'
          }
        ]
      },
      {
        path: '/one',
        name: 'one',
        entry: 'http://localhost:8151',
        icon: 'icon-shoucang1',
      },
      {
        path: '/second',
        name: 'second',
        entry: 'http://localhost:8151',
        icon: 'icon-shoucang1',
      },
      {
        path: '/father',
        name: 'account',
        routes: [
          {
            path: '/father/child',
            entry: 'http://localhost:8151',
            name: 'child',
          },
          {
            path: '/father/child2',
            entry: 'http://localhost:8151',
            name: 'child2',
          },
        ]
      }
    ],
  },
];
